Write(IEnumerable<Byte[]>,String,Int32) Method
Writes dataset to an an enumerable byte arrays with specified transfer syntax and byte array length. This is useful if you want to have byte arrays for large data.
FileStream or something similar would be preferable than holding everything in memory.
public void Write(
out System.Collections.Generic.IEnumerable<byte[]> ,
System.string ,
System.int
)
public procedure Write(
Out : System.Collections.Generic.IEnumerable;
: System.String;
: System.Integer
);
public function Write(
: System.Collections.Generic.IEnumerable,
: System.String,
: System.int
);
public: void Write(
[PARAMFLAG::Out] System.Collections.Generic.IEnumerable<byte[]>* ,
System.string* ,
System.int
)
public:
void Write(
[Out] System.Collections.Generic.IEnumerable<array<byte>>^ ,
System.String^ ,
System.int
)
'Declaration
Public Overloads Sub Write( _
ByRef As System.Collections.Generic.IEnumerable(Of Byte()), _
ByVal As System.String, _
Optional ByVal As System.Integer _
)
'Usage
Dim instance As DicomDataSet
Dim arrays As System.Collections.Generic.IEnumerable(Of Byte())
Dim TransferSyntax As System.String
Dim pagedBufferSize As System.Integer
instance.Write(arrays, TransferSyntax, pagedBufferSize)
Parameters
- arrays
Collection of byte arrays to write large dataset to
- TransferSyntax
Specifies the full UID of the transfer syntax with which the file is to be saved when Part 10 format is used. If omitted, the little-endian explicit VR transfer syntax is used.
- pagedBufferSize
- Size of each individual buffers in the collection
Target Platforms: .NET CLR 4.8 or higher